//
//  playLayer.h
//  zhuan
//
//  Created by zhao ys on 5/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "GameLogic.h"


@interface playLayer : CCLayer<GameLogicDelegate> {
	CCSpriteBatchNode * batchNode_;
	CCLabelTTF *label_score_;
	CCSprite * button_score_; 
	CCLabelTTF *label_sec_;
	
	NSMutableDictionary * buttons_free_;
	NSArray * buttons_frame_name_;

	CCProgressTimer * progress_l_;
	CCProgressTimer * progress_r_;
	CCSprite * progress_c_;
	
	CCSprite * press_animation_;
	
	//float time_left_;
	
	float path_left_time_;
	CCSpriteBatchNode * pathNode_;
	CCMenuItemToggle * menu_sound_;
	
	float hint_left_time_;

	float levelup_left_time_;
	
	CCSprite * help_;
	CCLayer * color_layer_;

	BOOL running_;
	BOOL done_;
	BOOL tmp_sound_;
	BOOL removing_;
	
	float addition_score_;
	int remove_tools_;
	CCSprite * using_bomb_;
	
	NSTimer * timer_;
}

-(void) UserTouch:(CGPoint)pt;

+(CCScene *) scene;
-(void) pause;
//-(void)CreateButton:(int)type X:(int)x Y:(int)y;
@end
